package demo.gui;

import static org.lwjgl.opengl.GL11.*;
import engine.core.OpenGLView;

public class GUIDemo extends OpenGLView{

	
	public GUIDemo(String title) {
		super(title, 800, 600);
	}
	
	@Override
	public void init() {
		glEnable(GL_DEPTH_TEST);
		glShadeModel(GL_SMOOTH);
		glDepthFunc(GL_LEQUAL);
		glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST);
		glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST);
		
		glEnable(GL_COLOR_MATERIAL);
	}

	public static void main(String[] args) {
		GUIDemo window = new GUIDemo("spherical engine - gui demo");
		window.addScene(new StartScene("start"));
		window.addScene(new LobbyScene("lobby"));
		window.setCurrentScene("start");
		new Thread(window).start();
	}
}
